package com.coders.silpa;

public class AbstractClassDerived  extends AbstractClassExample{
	//extending abstract method
	public double area( )
	{
		double side= 20.5;
		return (side*side);
	}
	public static void main(String args[])
	{
		AbstractClassDerived obj1=new AbstractClassDerived();
		obj1.setcolor("blue");//value assigned to abstract class
		
		double result=obj1.area();
		String col=obj1.getcolor();
		System.out.println("Area of Square is "+result);
		System.out.println("Color of Square is "+col);
		
		


	}
	                                    
	
	
	

}
